import os
import pandas as pd

print(os.getcwd()) # 获取当前工作目录
data = pd.read_csv('./py01/PythonApp01/data/monthly-car-sales.csv')
data['Month'] = pd.to_datetime(data['Month'], format='%Y-%m')
data['Sales'] = pd.to_numeric(data['Sales'])
#预处理数据，把Month列改名为ds，Sales列改名为y
data = data.rename(columns = {"Month":"ds", "Sales":"y"})[["ds","y"]]
print("data.head(5)")
print(data.head(5)) #查看前五条记录
print("data.tail(5)")
print(data.tail(5))  #查看后五条记录
